#!/bin/sh

# shellcheck source=/dev/null
. "$HOME"/.config/succ/succ.conf

OPT=$(printf "%s\n" "${OPTS[@]}" | dmenu -i -p "Session options: ")

case $OPT in
	Shutdown*) INST="${SHUTDOWN}" ;;
	Reboot*) INST="${REBOOT}" ;;
	Hibernate*) INST="${HIBERNATE}" ;;
	Lock*) INST="${LOCK}" ;;
	Logout*) INST="${LOGOUT}" ;;
	*) INST="${DEFAULT}" ;;
esac

eval exec "${INST}"

